|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPER.rover.control.TrackFinder
This is a class that, given an image and a measure of how much of a deviation from mean is allowed, creates good track color parameters.
Field Summary | |
int |
cmaxu
|
int |
cmaxv
|
int |
cmaxy
|
int |
cminu
|
int |
cminv
|
int |
cminy
|
int |
cpix
|
boolean[][] |
currMask
|
int |
ur
|
int |
vr
|
boolean[][] |
workMask
|
int |
yr
|
Constructor Summary | |
TrackFinder(int yRange,
int uRange,
int vRange)
Creates a new instance of TrackFinder |
Method Summary | |
boolean |
addPoint(int x,
int y)
Adds a point to what is being tracked. |
boolean[][] |
getTrackMask()
|
boolean |
pixelInRange(int x,
int y)
return true if the pixel is in the range of the track params |
void |
setYUV(int[] yuv_in,
int width,
int height)
You should call this whenever the source pixels have changed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int yr
public int ur
public int vr
public boolean[][] currMask
public boolean[][] workMask
public int cminy
public int cmaxy
public int cminu
public int cmaxu
public int cminv
public int cmaxv
public int cpix
Constructor Detail |
public TrackFinder(int yRange, int uRange, int vRange)
yRange
- maximum deviation allowed from mean YuRange
- maximum deviation allowed from mean UvRange
- maximum deviation allowed from mean VMethod Detail |
public void setYUV(int[] yuv_in, int width, int height)
public boolean[][] getTrackMask()
public boolean addPoint(int x, int y)
public boolean pixelInRange(int x, int y)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |